﻿using System;
using Microsoft.TeamFoundation.VersionControl.Client;

namespace TfsPolicyPack.CustomRegexPathPolicy
{
    [Serializable]
    public class TfsPolicy : PolicyInfo
    {
        #region Properties

        public IPolicyDefinition Policy { get; private set; }
        public bool Enabled { get; private set; }

        #endregion

        #region Constructor

        public TfsPolicy(IPolicyDefinition policyDefinition, int occurrence, bool enabled) : base(policyDefinition.Type, occurrence)
        {
            Policy = policyDefinition;
            Enabled = enabled;
        }

        #endregion
    }
}